// 用户相关的api
import { http } from '@/utils/http.js'

// 获取手机验证码
export const verifyCodeApi = (data) => {
  return http.get('/code', { params: data })
}

// 登录
export const loginByMobileApi = (data) => {
  return http.post('/login', data)
}

// 获取用户信息
export const userInfoApi = () => {
  return http.get('/patient/myUser')
}
